package dfbz.hpmework5;

public class cock extends fowl{
    public cock() {
    }

    public cock(int age, String color) {
        super(age, color);
    }

    @Override
    public void eat() {
        System.out.println(super.getAge()+"岁的"+super.getColor()+"的公鸡在啄米");
    }
    public void daming(){
        System.out.println(super.getAge()+"岁的"+super.getColor()+"的公鸡在打鸣");
    }
}
